<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<title>产品信息</title>
		<t:base type="jquery,easyui,tools,DatePicker"></t:base>
		<script type="text/javascript">
	//编写自定义JS代码
	$(function() {
		$('#cc').combotree( {
			url : 'pTypeController.do?getComboTree',
			panelHeight : 'auto',
			onClick : function(node) {
				$("#typeId").val(node.id);
			}
		});

	});
</script>
	</head>
	<body>
		<t:formvalid formid="formobj" dialog="true" usePlugin="password"
			layout="table" action="pProductController.do?doAddOrUpdate" tiptype="3">
			<input id="id" name="id" type="hidden" value="${pProductPage.id }">
			<table style="width: 99%;" cellpadding="0" cellspacing="1"
				class="formtable">
				<tr>
					<td align="right">
						<span class="text_red">*</span>&nbsp;
						<label class="Validform_label">
							产品名称:
						</label>
					</td>
					<td class="value">
						<input id="name" name="name" type="text" style="width: 150px"
							class="inputxt" datatype="*" value="${pProductPage.name }">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							产品名称
						</label>
					</td>
					<td align="right">
						<label class="Validform_label">
							产品描述:
						</label>
					</td>
					<td class="value">
						<input id="description" name="description" type="text" style="width: 150px"
							class="inputxt" value="${pProductPage.description }">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							产品描述
						</label>
					</td>
				</tr>
				<tr>
					<td align="right">
					<span class="text_red">*</span>&nbsp;
						<label class="Validform_label">
							产品分类:
						</label>
					</td>
					<td class="value">
						<input id="cc" value="${pProductPage.typeThree.id}">
						<input id="typeId" name="typeThree.id" style="display: none;"
							value="${pProductPage.typeThree.id}" datatype="*">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">

						</label>
					</td>
					<td align="right">
						<label class="Validform_label">
							生产厂家:
						</label>
					</td>
					<td class="value">
						<input id="manufacturer" name="manufacturer" type="text"
							style="width: 150px" class="inputxt" value="${pProductPage.manufacturer }">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							生产厂家
						</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<span class="text_red">*</span>&nbsp;
						<label class="Validform_label">
							产品型号:
						</label>
					</td>
					<td class="value">
						<input id="model" name="model" type="text" style="width: 150px"
							class="inputxt" datatype="*" value="${pProductPage.model }">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							产品型号
						</label>
					</td>
					<td align="right">
						<label class="Validform_label">
							产品颜色:
						</label>
					</td>
					<td class="value">
						<input id="color" name="color" type="text" style="width: 150px"
							class="inputxt" value="${pProductPage.color }">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							产品颜色
						</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							产品外观:
						</label>
					</td>
					<td class="value">
						<input id="appearance" name="appearance" type="text"
							style="width: 150px" class="inputxt" value="${pProductPage.appearance }">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							产品外观
						</label>
					</td>
					<td align="right">
						<label class="Validform_label">
							产品基础成本:
						</label>
					</td>
					<td class="value">
						<input id="basedCost" name="basedCost" type="text"
							style="width: 150px" class="inputxt"  datatype="n" value="${pProductPage.basedCost}">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							产品基础成本
						</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							附加成本:
						</label>
					</td>
					<td class="value">
						<input id="additionalCost" name="additionalCost" type="text"
							style="width: 150px" class="inputxt"  datatype="n" value="${pProductPage.additionalCost }">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							附加成本
						</label>
					</td>
					<td align="right">
						<label class="Validform_label">
							产品规格:
						</label>
					</td>
					<td class="value">
						<input id="specification" name="specification" type="text"
							style="width: 150px" class="inputxt" value="${pProductPage.specification }">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							产品规格
						</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<span class="text_red">*</span>&nbsp;
						<label class="Validform_label">
							安装费:
						</label>
					</td>
					<td class="value">
						<input id="installCost" name="installCost" type="text"
							style="width: 150px" class="inputxt"  datatype="n" value="${pProductPage.installCost }">
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">
							安装费
						</label>
					</td>
					<td align="right">
						<span class="text_red">*</span>&nbsp;
						<label class="Validform_label">
							测量费:
						</label>
					</td>
					<td class="value">
						<input id="measureCost" name="measureCost" type="text"
							style="width: 150px" class="inputxt"  datatype="n" value="${pProductPage.measureCost}">
						<label class="Validform_label" style="display: none;">
							测量费
						</label>
					</td>
				</tr>

			</table>
		</t:formvalid>
	</body>